// Source file:
// G:\\5o_ano\\PCS2040\\desenvolvimento\\rose\\Servidor\\Roteamento\\VerticeAdjacente.java

package servidor.roteamento;

public class VerticeAdjacente {

    private Vertice vertice;
    private int[] custos;

    /**
     * @roseuid 426D7C4F008C
     */
    public VerticeAdjacente(Vertice v, int[] c) {
        vertice = v;
        custos = c;
    }

    /**
     * @return servidor.roteamento.Vertice
     * @roseuid 4259A1CA0399
     */
    public Vertice getVertice() {
        return vertice;
    }

    /**
     * @return int[]
     * @roseuid 4259A1D40290
     */
    public int[] getCustos() {
        return custos;
    }

    public int getCusto(int restricao) {
        return custos[restricao];
    }

}